package com.bw.springcloud.service;

import com.bw.springcloud.dao.PaymentDao;
import com.bw.springcloud.entity.Payment;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 类描述
 * 支付业务实现类
 *
 * @author Mr.Wu
 * @create 2020-05-05
 */
@Service
public class PaymentServiceImpl implements PaymentService {

	@Resource
	private PaymentDao paymentDao;


	@Override
	public int create(Payment payment) {
		return paymentDao.create(payment);
	}

	@Override
	public Payment getPaymentById(Long id) {
		return paymentDao.getPaymentById(id);
	}
}
